package com.free.fs.controller.util;

import lombok.Data;

@Data
public class Result {
    private boolean flag;
    private Object data;
    private String msg;

   public Result(){}
    public Result(boolean flag){
       this.flag=flag;
    }
    public Result(boolean flag, Object data){
       this.flag=flag;
       this.data=data;
    }

    public Result(String msg){
       this.flag=false;
       this.msg=msg;
    }
    public Result(boolean flag,String msg){
        this.flag=flag;
        this.msg=msg;
    }

}
